package io.kiki.sba.registry.common.model.store;

import com.google.common.collect.Interner;
import com.google.common.collect.Interners;


public final class StringInterner {
    private static final Interner<String> INTERNER = Interners.newWeakInterner();

    private StringInterner() {
    }

    public static String intern(String s) {
        if (s == null) {
            return null;
        }
        return INTERNER.intern(s);
    }
}
